package com.sihai.ehr.model.biz;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import com.sihai.core.BaseEntity;
import com.sihai.ehr.model.sys.ExaminePeriodEnum;
import com.sihai.ehr.model.sys.Organization;

/**
 * 员工考核汇总实体类
 * 
 * @author Henry
 * 
 */
@Entity
public class ExamStatistics extends BaseEntity<Long> {
	/**
	 * 
	 */
	private static final long serialVersionUID = 6269027078494141671L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long id;

	/** 考核基本配置ID */
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "examconfig_id")
	private ExamBaseConfig examBaseConfig;

	/** 考核周期编号 */
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "period_id")
	private ExamPeriod examPeriod;

	/** 员工编号 */
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "work_id")
	private EmployeeinfoWork employeeinfoWork;

	/** 定性考核评分 */
	private Float qualScore;

	/** 定量考核评分 */
	private Float quanScore;

	/** 计算评分 */
	private Float score;

	/** 上一级考核分数 */
	private Float prevScore;

	/** 是否面谈过 */
	private boolean isFacetime;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public ExamBaseConfig getExamBaseConfig() {
		return examBaseConfig;
	}

	public void setExamBaseConfig(ExamBaseConfig examBaseConfig) {
		this.examBaseConfig = examBaseConfig;
	}

	public ExamPeriod getExamPeriod() {
		return examPeriod;
	}

	public void setExamPeriod(ExamPeriod examPeriod) {
		this.examPeriod = examPeriod;
	}

	public EmployeeinfoWork getEmployeeinfoWork() {
		return employeeinfoWork;
	}

	public void setEmployeeinfoWork(EmployeeinfoWork employeeinfoWork) {
		this.employeeinfoWork = employeeinfoWork;
	}

	public Float getQualScore() {
		return qualScore;
	}

	public void setQualScore(Float qualScore) {
		this.qualScore = qualScore;
	}

	public Float getQuanScore() {
		return quanScore;
	}

	public void setQuanScore(Float quanScore) {
		this.quanScore = quanScore;
	}

	public Float getScore() {
		return score;
	}

	public void setScore(Float score) {
		this.score = score;
	}

	public Float getPrevScore() {
		return prevScore;
	}
	
	public void setPrevScore(Float prevScore) {
		this.prevScore = prevScore;
	}

	public boolean isFacetime() {
		return isFacetime;
	}

	public void setFacetime(boolean isFacetime) {
		this.isFacetime = isFacetime;
	}
}
